﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Shared/MasterPages/Administration.master" CodeBehind="Courses.aspx.vb" Inherits="SISSAT.WebDevelopment.Pages.Administration.Courses" %>
<%@ Register TagPrefix="sissat" TagName="CourseDetailControl" Src="/Shared/UserControls/CourseDetailControl.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentPlaceHolder" runat="server">
    <asp:MultiView ID="CourseViews" runat="server" ActiveViewIndex="0">
        <asp:View ID="ListView" runat="server">
            <table class="course">
                <asp:Repeater ID="CourseRepeater" runat="server">
                    <HeaderTemplate>
                        <tr class="header">
                            <td class="col1">Code</td>
		                    <td class="col2">Course</td>
		                    <td class="col3">Description</td>
                            <td class="col4"></td>
	                    </tr>
                        <tr>
                            <td colspan="4"><hr /></td>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="contentdata">
		                    <td class="alignl"><%#Eval("Code")%></td>
		                    <td class="alignl"><%#Eval("Name")%></td>
                            <td class="alignl"><%#Eval("Description")%></td>
                            <td>
                                <a href='/Pages/Administration/Courses.aspx?cid=<%#Eval("CourseId") %>' class='fcolor1' title='Edit <%#Eval("Code") %> Details'>Edit</a>
                            </td>
	                    </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </asp:View>
        <asp:View ID="DetailView" runat="server">
            <div class="profile">
                <div class="info center">
                    <sissat:CourseDetailControl ID="CourseDetailControl" runat="server" />
                </div>
            </div>
        </asp:View>
    </asp:MultiView>
</asp:Content>
